package com.simple.piger.utils;import com.simple.piger.utils.security.MD5;import com.simple.piger.utils.security.SHA1;import org.apache.commons.lang3.RandomStringUtils;import java.util.UUID;public class PasswordUtils {    public static String getSessionToken(){        return UUID.randomUUID().toString().replace("-", "") + RandomStringUtils.randomAlphanumeric(8);    }    public static String getPwd(String pwd, String salt){        return SHA1.encode( MD5.encode( (pwd + salt).getBytes() ) );    }    public static Boolean comparePwd(String pwd, String originalPwd, String salt){        return getPwd(pwd, salt).equals(getPwd(originalPwd, salt));    }    public static String getPayCode(String pwd){        return SHA1.encode( MD5.encode(pwd.getBytes()) );    }    public static String getInitPwd(){        return "";    }    public static void main(String[] args) {        System.out.println(getPwd("123456", "23456"));    }}